﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;

namespace WcfTicketsLibrary
{
    [ServiceContract(SessionMode = SessionMode.Required, CallbackContract = typeof(ISeatListenerCallback))]
    public interface ISeatListener
    {
        [OperationContract]
        Guid Add();

        [OperationContract(IsOneWay = true)]
        void Remove(Guid clientId);

        [OperationContract(IsOneWay = true)]
        void NotifyAll();
    }

    // own interface to be implemented on the client
    public interface ISeatListenerCallback
    {
        [OperationContract(IsOneWay = true)]
        void NotifyMe();
    }
}
